package com.cjq.auth.remote;

import com.cjq.common.domain.SysUser;
import com.cjq.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(name = "cjq-system")
public interface SysUserRemoteService {
    /**
     * 根据账号查询用户
     * @param userName
     * @return
     */
    @GetMapping("/user/findUser/{userName}")
    public Result<SysUser> findUser(@PathVariable String userName);
}
